package jerry.html.events;

import java.util.List;

/**
 * 
 * 
 * player team event
 * 
 * 
 * @author (h0t@_G0|i
 * 
 */
public class PlyrTeamEvtCapImpl
    extends EvtCap
{

    public PlyrTeamEvtCapImpl(List<String> list)
    {
        int i = list.size();
        if(i < 5)
        {
            validEvt = false;
            return;
        }
        validEvt = true;
        timeStamp = Double.valueOf(list.get(0)).doubleValue();
        playerId = Integer.parseInt(list.get(3));
        teamId = Integer.parseInt(list.get(4));
        if((list.get(2)).equals("Team"))
            isTeamChange = false;
        else
            isTeamChange = true;
    }

    public int teamId;
    public int playerId;
    public boolean isTeamChange;
}
